package com.huawei.appmarket.service.exposure.bean;

import com.huawei.appgallery.jsonkit.api.JsonBean;
import java.util.ArrayList;
import o.dof;
import o.dyf;

public class ExposureDetail extends JsonBean {
    private static final String DEFAULT_LAYOUT_ID = "0";
    private static final String DEFAULT_TRACE = "";
    private static final String DETAIL_SEPARATOR = "#$#";
    private ArrayList<String> detailIdList_;
    private int forceExposure_;
    private String layoutId_;
    private String scene = "default";
    private long ts_;

    public ExposureDetail() {
        this.forceExposure_ = dyf.ˏ("default") ? 1 : 0;
    }

    public long ॱ() {
        return this.ts_;
    }

    public void ˏ(long j) {
        this.ts_ = j;
    }

    public void ॱ(String str) {
        this.layoutId_ = str;
    }

    public void ˎ(ArrayList<String> arrayList) {
        this.detailIdList_ = arrayList;
    }

    public String ˎ() {
        return this.scene;
    }

    public void ˊ(String str) {
        this.scene = str;
        this.forceExposure_ = dyf.ˏ(str) ? 1 : 0;
    }

    public boolean equals(Object obj) {
        if (obj != null && (obj instanceof ExposureDetail) && ((ExposureDetail) obj).ॱ() == ॱ()) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        return super.hashCode();
    }

    public String toString() {
        return "ExposureDetail{ts_=" + this.ts_ + ", layoutId_='" + this.layoutId_ + '\'' + ", detailIdList_=" + this.detailIdList_.size() + '}';
    }

    public static ExposureDetail ˎ(String str) {
        if (dof.ॱ(str)) {
            return null;
        }
        ExposureDetail exposureDetail = new ExposureDetail();
        exposureDetail.ˏ(System.currentTimeMillis());
        exposureDetail.ॱ("0");
        ArrayList arrayList = new ArrayList();
        arrayList.add(str + DETAIL_SEPARATOR + "");
        exposureDetail.ˎ(arrayList);
        return exposureDetail;
    }
}
